/* 
 * File:   spritesconstantstest.cpp
 * Author: dolphinigle
 *
 * Created on March 11, 2011, 3:00 PM
 */

#include <stdlib.h>
#include "gtest/gtest.h"
#include "spritesconstants.hpp"
#include "gtesthelper.hpp"
#include "fieldconstants.hpp"

TEST(SpritestConstantsTest, Consistency) {
  GTestHelper::expectPositiveLowerThan(
          SpritesConstants::harvestSpriteStartLocationXCoordinate(),
          FieldConstants::getColumnCount());
  GTestHelper::expectPositiveLowerThan(
          SpritesConstants::harvestSpriteStartLocationYCoordinate(),
          FieldConstants::getRowCount());
  GTestHelper::expectPositiveLowerThan(
          SpritesConstants::waterSpriteStartLocationXCoordinate(),
          FieldConstants::getColumnCount());
  GTestHelper::expectPositiveLowerThan(
          SpritesConstants::waterSpriteStartLocationYCoordinate(),
          FieldConstants::getRowCount());
  GTestHelper::expectPositiveLowerThan(
          SpritesConstants::sickleSpriteStartLocationXCoordinate(),
          FieldConstants::getColumnCount());
  GTestHelper::expectPositiveLowerThan(
          SpritesConstants::sickleSpriteStartLocationYCoordinate(),
          FieldConstants::getRowCount());
}
